'use strict';

var gulp = require('gulp'),
	sass = require('gulp-sass'),
	connect = require("gulp-connect");

gulp.task('sass', function() {
	return gulp.src("scss/*.scss")
		.pipe(sass())
		.pipe(gulp.dest("css"));
});


gulp.task('default', ['sass','watch']);

gulp.task('watch', function() {
	gulp.watch('scss/*.scss', ['sass']);

});

gulp.task("refreshHTML",function(){
     
     gulp.src("./*.html").pipe(connect.reload());
});

gulp.task("watchs",function (){
    
     connect.server({
          livereload:true
     });
     
     gulp.watch("./*.html", ["refreshHTML"]);
});
